const koa=require('koa');
const koaRouter=require('koa-router');  // 路由定制


const app=new koa();
const router = new koaRouter;


router.get('/fe',ctx=>{
    ctx.body='hello fe';
})
router.get('/backend',ctx=>{
    ctx.body='hello backend';
})

app.use(router.routes());
app.use(router.allowedMethods());

app.listen(1314,()=>{
    console.log('服务启动');
})